<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function doSomething() {}
      console.log(doSomething.prototype)
      // It does not matter how you declare the function, a
      //  function in javascript will always have a default
      //  prototype property.
      var doSomething = function() {}
      console.log(doSomething.prototype)
      doSomething.prototype.foo = 'bar'
      console.log(doSomething.prototype) // {foo: "bar", constructor: ƒ}

      var doSomeInstancing = new doSomething()
      doSomeInstancing.prop = 'some value' // add a property onto the object
      console.log(doSomeInstancing)
    </script>
  </body>
</html>
